package com.zhi.syc.data_applist.beans;

import android.text.TextUtils;

import org.json.JSONException;
import org.json.JSONObject;

public class ASImageInfoBean {
    /**
     * 文件名称
     */
    public String name;
    /**
     * 设备品牌
     */
    public String make;
    /**
     * 设备型号
     */
    public String model;
    /**
     * 宽度
     */
    public String width;
    /**
     * 高度
     */
    public String height;
    /**
     * 拍摄时间
     */
    public String date;
    /**
     * 纬度，原生的，未格式化的值一串未知字符
     */
    public String latitude;
    /**
     * 纬度，已格式化的数值
     */
    public String latitudeG;
    /**
     * 纬度名：N or S
     */
    public String latitudeRef;
    /**
     * 经度，原生的，未格式化的值一串未知字符
     */
    public String longitude;
    /**
     * 经度，已格式化的数值
     */
    public String longitudeG;
    /**
     * 经度名：W or E
     */
    public String longitudeRef;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getModel() {
        return model;
    }

    public void setModel(String model) {
        this.model = model;
    }

    public String getWidth() {
        return width;
    }

    public void setWidth(String width) {
        this.width = width;
    }

    public String getHeight() {
        return height;
    }

    public void setHeight(String height) {
        this.height = height;
    }

    public String getDate() {
        return date;
    }

    public void setDate(String date) {
        this.date = date;
    }

    public String getLatitude() {
        return latitude;
    }

    public void setLatitude(String latitude) {
        this.latitude = latitude;
    }

    public String getLatitudeG() {
        return latitudeG;
    }

    public void setLatitudeG(String latitudeG) {
        this.latitudeG = latitudeG;
    }

    public String getLatitudeRef() {
        return latitudeRef;
    }

    public void setLatitudeRef(String latitudeRef) {
        this.latitudeRef = latitudeRef;
    }

    public String getLongitude() {
        return longitude;
    }

    public void setLongitude(String longitude) {
        this.longitude = longitude;
    }

    public String getLongitudeG() {
        return longitudeG;
    }

    public void setLongitudeG(String longitudeG) {
        this.longitudeG = longitudeG;
    }

    public String getLongitudeRef() {
        return longitudeRef;
    }

    public void setLongitudeRef(String longitudeRef) {
        this.longitudeRef = longitudeRef;
    }

    public String getMake() {
        return make;
    }

    public void setMake(String make) {
        this.make = make;
    }

    public String getJsonString() {
        JSONObject jsonObject = new JSONObject();
        try {
            jsonObject.put("make", TextUtils.isEmpty(this.make) ? "" : this.make);
            jsonObject.put("name", TextUtils.isEmpty(this.name) ? "" : this.name);
            jsonObject.put("model", TextUtils.isEmpty(this.model) ? "" : this.model);
            jsonObject.put("width", TextUtils.isEmpty(this.width) ? "" : this.width);
            jsonObject.put("height", TextUtils.isEmpty(this.height) ? "" : this.height);
            jsonObject.put("date", TextUtils.isEmpty(this.date) ? "" : this.date);
            jsonObject.put("latitude", TextUtils.isEmpty(this.latitude) ? "" : this.latitude);
            jsonObject.put("latitudeG", TextUtils.isEmpty(this.latitudeG) ? "" : this.latitudeG);
            jsonObject.put("latitudeRef", TextUtils.isEmpty(this.latitudeRef) ? "" : this.latitudeRef);
            jsonObject.put("longitude", TextUtils.isEmpty(this.longitude) ? "" : this.longitude);
            jsonObject.put("longitudeG", TextUtils.isEmpty(this.longitudeG) ? "" : this.longitudeG);
            jsonObject.put("longitudeRef", TextUtils.isEmpty(this.longitudeRef) ? "" : this.longitudeRef);

        } catch (JSONException e) {
            e.printStackTrace();
        }

        return jsonObject.toString();
    }

    public String toString() {
        return "ImgInfoBean{name='" + this.name + '\'' + ", model='" + this.model + '\'' + ", width='" + this.width + '\'' + ", height='" + this.height + '\'' + ", date='" + this.date + '\'' + ", latitude='" + this.latitude + '\'' + ", latitudeG='" + this.latitudeG + '\'' + ", latitudeRef='" + this.latitudeRef + '\'' + ", longitude='" + this.longitude + '\'' + ", longitudeG='" + this.longitudeG + '\'' + ", longitudeRef='" + this.longitudeRef + '\'' + ", make='" + this.make + '\'' + '}';
    }
}
